package com.ruoyi.parcel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.parcel.mapper.EPaymentOrderMapper;
import com.ruoyi.parcel.domain.EPaymentOrder;
import com.ruoyi.parcel.service.IEPaymentOrderService;

/**
 * orderService业务层处理
 *
 * @author ruoyi
 * @date 2024-12-02
 */
@Service
public class EPaymentOrderServiceImpl implements IEPaymentOrderService
{
    @Autowired
    private EPaymentOrderMapper ePaymentOrderMapper;

    /**
     * 查询order
     *
     * @param id order主键
     * @return order
     */
    @Override
    public EPaymentOrder selectEPaymentOrderById(Long id)
    {
        return ePaymentOrderMapper.selectEPaymentOrderById(id);
    }

    /**
     * 查询order列表
     *
     * @param ePaymentOrder order
     * @return order
     */
    @Override
    public List<EPaymentOrder> selectEPaymentOrderList(EPaymentOrder ePaymentOrder)
    {
        return ePaymentOrderMapper.selectEPaymentOrderList(ePaymentOrder);
    }

    /**
     * 新增order
     *
     * @param ePaymentOrder order
     * @return 结果
     */
    @Override
    public int insertEPaymentOrder(EPaymentOrder ePaymentOrder)
    {
        return ePaymentOrderMapper.insertEPaymentOrder(ePaymentOrder);
    }

    /**
     * 修改order
     *
     * @param ePaymentOrder order
     * @return 结果
     */
    @Override
    public int updateEPaymentOrder(EPaymentOrder ePaymentOrder)
    {
        return ePaymentOrderMapper.updateEPaymentOrder(ePaymentOrder);
    }

    /**
     * 批量删除order
     *
     * @param ids 需要删除的order主键
     * @return 结果
     */
    @Override
    public int deleteEPaymentOrderByIds(Long[] ids)
    {
        return ePaymentOrderMapper.deleteEPaymentOrderByIds(ids);
    }

    /**
     * 删除order信息
     *
     * @param id order主键
     * @return 结果
     */
    @Override
    public int deleteEPaymentOrderById(Long id)
    {
        return ePaymentOrderMapper.deleteEPaymentOrderById(id);
    }

    @Override
    public EPaymentOrder getPatment(Long orderNumber) {
        return ePaymentOrderMapper.getzhifu(orderNumber);
    }
}
